<?php
/*******************************************************************************
 *
 *  Name: managerviewreport
 *
 *  Date: 2012-04-26
 *  
 *  Description: This is the view for looking at a report in the manager view
 *  
 *  Author: David Jarman
 *  
 *  Todo:
 *     NONE
 *
 *  Modification History:  
 * 
 *   Date         Name
 *  ----------   --------------
 *  2012-04-26   DAVID JARMAN
 * 
 *****************************************************************************/
?>
<h3>Report <?php echo $Report['ReportID_save']; ?></h3>

<table border="2px">
<tr>
   <td>
      Type:
   </td>
   <td>
      <?php
      if($Report['Sensor'] == 1)
         echo "Sensor";
      else 
         echo "Customer Report";
      ?>
   </td>
</tr>
<tr>
   <td>Customer Rep</td>
   <td><?php echo $Report["CustomerRepID"]; ?></td>
</tr>
<tr>
   <td>Status</td>
   <td><?php echo $Report["Status"]; ?></td>
</tr>
<tr>
   <td>Timestamp</td>
   <td><?php echo $Report["TS"]; ?></td>
</tr>
<tr>
   <td>Description</td>
   <td><?php echo $Report["Description"]; ?></td>
</tr>
<tr>
   <td>Report Time</td>
   <td><?php echo $Report["ReportTime"]; ?></td>
</tr>
<tr>
   <td>Location</td>
   <td><?php echo $Report["Address"].',',$Report["City"].','.$Report["State"].' '.$Report['Zipcode']; ?></td>
</tr>
<tr>
   <td>Incident ID</td>
   <td>
   <?php 
   if($Report['IncidentID']!= NULL)
      echo $Report['IncidentID'];
   else
      echo "Unassigned";
    ?></td>
</tr>
<?php if( $Report['Sensor'] == 1): ?>
<tr>
   <td>SensorID</td>
   <td><?php echo $Report['SensorID']; ?></td>
</tr>

<?php endif; ?>
<?php if( $Report['Sensor'] == 0 ): ?>
<tr>
   <td>Phone Number</td>
   <td><?php echo $Report["PhoneNumber"]; ?></td>
</tr>
<tr>
   <td>Name</td>
   <td><?php echo $Report["Firstname"]." ".$Report["Lastname"]; ?></td>
</tr>
<tr>
   <td>Email</td>
   <td><?php echo $Report["Email"]; ?></td>
</tr>

<?php endif; ?>
</table>
